package com.icejoywoo.rss.helper;

import android.app.Activity;
import android.app.Service;
import android.os.Vibrator;

/**
 * Vibrator's simple wrapper
 * @author icejoywoo
 */
public class TipHelper {
	public static void vibrate(final Activity activity, long milliseconds) {
		Vibrator vibrator = (Vibrator) activity.getSystemService(Service.VIBRATOR_SERVICE);
		vibrator.vibrate(milliseconds);
	}
	
	public static void vibrate(final Activity activity, long[] pattern) {
		Vibrator vibrator = (Vibrator) activity.getSystemService(Service.VIBRATOR_SERVICE);
		vibrator.vibrate(pattern, -1);
	}
}
